<template>
	<view>
		<h1>登录页面</h1>
		<button @click="getToken">登录</button>
	</view>
</template>

<script>
	export default {
		methods: {
			getToken() {
				let date = new Date().getTime()
				this.$store.commit("app/setToken", date)
				this.$Routers({
					url: '/pages/mine/mine',
					type: 'redirectTo',
					params: {
						token: this.$store.getters.token
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	h1 {
		text-align: center;
		margin: 20px 0;
	}
</style>
